// 内容表
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const ProductType = {
    title: String, // 标题
    cover: String, //封面
    introduction: String, //简介
    detail: String, //详细描述
    editTime: Date, //发布时间/修改时间
    author: String, //作者
};
// 创建数据库模型
const ProductModel = mongoose.model('product', new Schema(ProductType));

module.exports = ProductModel;
